﻿using HOPU.OnlineSchool.Application.Teachers.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.Teachers.Services
{
    public interface ITeacherService
    {
        /// <summary>
        /// 讲师列表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="listInput"></param>
        /// <returns></returns>
        Task<PagedList<TeacherListOutput>> GetPagedListAsync(int page, int limit, TeacherListInput listInput);
        /// <summary>
        /// 删除讲师
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(string id);
        /// <summary>
        /// 添加讲师
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task AddAsync(TeacherAddInput input);
        /// <summary>
        /// 根据id获取编辑讲师信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<TeacherDto> GetTeacherAsync(string id);
        /// <summary>
        /// 更新下讲师信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task UpdateAsync(string id, TeacherDto dto);
    }
}
